package org.jeecg.modules.room.service;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.room.entity.RoomBookInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.room.entity.RoomBookInfoMx;
import org.jeecg.modules.room.vo.RoomFpStatusVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;


/**
 * @Description: 预定单主信息
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface IRoomBookInfoService extends IService<RoomBookInfo> {


    /**
     * 添加一对多
     *
     * @param roomBookInfo
     * @param roomBookInfoMxList
     */
    public void saveMain(RoomBookInfo roomBookInfo, List<RoomBookInfoMx> roomBookInfoMxList) ;

    /**
     * 修改一对多
     *
     * @param roomBookInfo
     * @param roomBookInfoMxList
     */
    public void  updateMain(RoomBookInfo roomBookInfo,List<RoomBookInfoMx> roomBookInfoMxList);

    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void  delBatchMain (Collection<? extends Serializable> idList);

    public IPage<RoomBookInfo> selectBookInfoList(IPage<RoomBookInfo> page, Wrapper<RoomBookInfo> queryWrapper);

    public List<RoomFpStatusVo> selectFpStatus(String bookCode);

    //取消订单
    public void  cancelBook(String bookCodes);

    //确认订单
    public void  confirmBook(String bookCodes);

    //撤销确认
    public void  unConfirmBook(String bookCodes);

    public List<Map> selectBookByDate();
}
